
<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">

    <div class="row ">
        <div class="col-sm-2">
            <input type="text" class="form-control"  ng-model="id" placeholder="产品编号"> 
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="product_name" placeholder="产品名称">
        </div>
    
        <div class="col-sm-2">
            <ui-select ng-model="d.product_state" theme="bootstrap" >
                <ui-select-match placeholder="请选择产品状态">
                    {{$select.selected.name}}
                </ui-select-match>
                <ui-select-choices repeat="item.value as item in psarr | filter: $select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="start_city_arr" placeholder="出发城市"> 
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="end_city" placeholder="目的地城市"> 
        </div>
        <div class="col-sm-2 ">
            <button class="btn btn-block btn-info" ng-click="search()">搜索</button> 
        </div>
    </div>  


</div>
</div>
</div>
<!-- searchArea -->

<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered" style="display: table; width: 100%;table-layout:fixed;">
            <thead>
                <tr>
                    <th class=" text-center" style="width: 15%;text-align:center;vertical-align:middle;">产品编号</th>
                    <th class=" text-center" style="width: 15%;text-align:center;vertical-align:middle;">主名称</th>
                    <th class=" text-center" style="width: 15%;text-align:center;vertical-align:middle;">副名称</th>
                    <th class=" text-center" style="width: 15%;text-align:center;vertical-align:middle;">出发城市</th>
                    <th class=" text-center" style="width: 15%;text-align:center;vertical-align:middle;">目的城市</th>                  
                    <th class=" text-center" style="width: 15%;text-align:center;vertical-align:middle;">产品状态</th>                 
                    <th class=" text-center" style="width: 10%;text-align:center;vertical-align:middle;">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="info in a" >
                    <td class="text-center" style="width: 15%;text-align:center;vertical-align:middle;">{{info.id}}</td>
                    <td class="text-center" style="width: 15%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.product_name}}">{{info.product_name}}</div></td>
                    <td class="text-center" style="width: 15%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.product_sub_name}}">{{info.product_sub_name}}</div></td>
                    <td class="text-center" style="width: 15%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.start_city_arr}}">{{info.start_city_arr}}</div></td>
                    <td class="text-center" style="width: 15%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.end_city}}">{{info.end_city}}</div></td>            
                    <td class="text-center" style="width: 15%;text-align:center;vertical-align:middle;">{{info.product_state_name}}</td>                         
                    <td class="text-center" style="width: 10%;text-align:center;vertical-align:middle;">
                         <button type="button" class="btn btn-info btn-xs " ng-click="toinfo($index)">详情</button>
                    </td>
                    

                </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination 
                total-items="totalItems" 
                ng-model="currentPage" 
                ng-change="pageChanged()"
                previous-text="上一页"
                next-text="下一页"
                first-text="首页"
                last-text="尾页"
                max-size="5"
                boundary-links="true"
                rotate="false"
                items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>

